package com.maikang.exammall.util.idvalidator;

import lombok.Data;

/**
 * 身份证信息
 *
 */
@Data
public class IDCodeInfo {
	private String body;
	private int type;

	private boolean valid;
	private String addrCode;
	private String addr;
	private String birthCode;
	private String birth;
	private int gender;  // 1 男， 2 女
	private String checkBit;
	private int order;

	public IDCodeInfo(String body, String checkBit, int type){
		this.body = body;
		this.checkBit = checkBit;
		this.type = type;
	}
	
	public IDCodeInfo(String body, int type) {
		super();
		this.body = body;
		this.type = type;
	}
	@Override
	public String toString() {
		String str = "addrCode:" + addrCode + " addr:" + addr + " birthCode:"
				+ birthCode + " birth:" + birth + " order:" + order
				+ " checkBit:" + checkBit + " sex:" + gender + " type:" + type;
		return str;
	}
}